for i in range(10):
    if i > 3:
        break
    print(i, end="")
    for j in "abcde":
        if j == 'b':
            continue
        print(j, end=" ")